Don't clear HCR_VM bit when updating VTTBR.
authorJun Sun <jsun@junsun.net>
Mon, 10 Oct 2016 19:27:56 +0000 (12:27 -0700)
committerStefano Stabellini <sstabellini@kernel.org>
Thu, 16 Mar 2017 20:42:03 +0000 (13:42 -0700)
commit768b250b31361bf8acfef4b7dca61ee37c91f3f6
tree5c0104c4e84fbe1e02a08e1fc1b490f57db784e2
parent049b13dce84655cd73ac4acc051e7df46af00a4f
Don't clear HCR_VM bit when updating VTTBR.

Currently function p2m_restore_state() would clear HCR_VM bit, i.e.,
disabling stage2 translation, before updating VTTBR register. After
some research and talking to ARM support, I got confirmed that this is not
necessary. We are currently working on a new platform that would need this
to be removed.

The patch is tested on FVP foundation model.

Signed-off-by: Jun Sun <jsun@junsun.net>
Acked-by: Steve Capper <steve.capper@linaro.org>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/p2m.c